package com.tpp.threat_perception_platform.dao;

import com.tpp.threat_perception_platform.param.MyParam;
import com.tpp.threat_perception_platform.pojo.App;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Sunny
* @description 针对表【app】的数据库操作Mapper
* @createDate 2025-06-10 21:55:33
* @Entity com.tpp.threat_perception_platform.pojo.App
*/
public interface AppMapper {

    int deleteByPrimaryKey(Long id);

    int insert(App record);

    int insertSelective(App record);

    App selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(App record);

    int updateByPrimaryKey(App record);

    App selectByMacAddress(String macAddress);

    int deleteByMacAddress(String app);

    int countByMacAddress(String macAddress);

    // 更新风险等级
    int updateRiskLevelByMacAddress(@Param("macAddress") String macAddress, @Param("riskLevel") String riskLevel);

    List<App> findAll(@Param("param") MyParam param);

    int selectCount();
}
